package com.example.lib.io2;

import java.io.File;

public class e_io_file_deletefile_20_09 {

    public static void main(String[] args) {
        File f=new File("E:\\testFile");
        deleteFile(f);
    }

    public static void deleteFile(File f){
        File[] files = f.listFiles();
        for (File file:files){
            if (file.isDirectory()){
                deleteFile(file);
            }else{
                System.out.println(file +":-file-:"+file.delete());
            }
        }
        System.out.println(f+"::dir::"+f.delete());
    }
}
